<?php

require_once 'control/adm/content/scrolling/form.php';
require_once 'view/adm/content/scrolling.edit.php';


require_once APP_ROOT . 'view/common/layout.formview.php';
require_once APP_ROOT . 'view/common/layout.view.php';

class ScrollingCreatePage extends PageController {

	var $form;
	var $view;

    function ScrollingCreatePage() {
        parent::PageController();
        $this->form =& new ScrollingFormController();
        $this->form->setUserType(true,true);
        $this->addChild('ScrollingForm', $this->form);
        $this->setDefaultChild('ScrollingForm');

        // pass form controller as a parameter

        $this->view =& new ScrollingEditView('/common/scrolling/scrolling.edit.html', $this->form);
        $this->form->setView($this->view);

        $this->setDefaultView($this->view);

        $this->addView('success', WACT_DEFAULT_VIEW);
        $this->addView('notfound', WACT_DEFAULT_VIEW);
        $this->addView('delete', new Handle('RedirectView', array('/delete')));
        $this->addView('index', new Handle('RedirectView', array('/')));
		$this->addView('createOK', new Handle('RedirectView', array('/')));
        $this->addView('saveOK', new Handle('RedirectView', array('/')));
        $this->addView('cleanOK', WACT_DEFAULT_VIEW);
        $this->addView('this', WACT_DEFAULT_VIEW);
    }
}

?>